package com.p2l.letterblocks;


import com.p2l.letterblocks.R;

import android.app.Dialog;
import android.content.Context;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;

public class DialogCredits extends Dialog {
	private TextView sound;

	public DialogCredits(Context context) {
		super(context, android.R.style.Theme_Translucent_NoTitleBar_Fullscreen);
		setContentView(R.layout.credits);
		
		sound = (TextView) findViewById(R.id.lblMusicCredits2);
		sound.setClickable(true);
		sound.setMovementMethod(LinkMovementMethod.getInstance());
		String text = context.getResources().getString(R.string.label_music_credits_part_2) + " " + "<a href='https://play.google.com/store/apps/details?" + context.getPackageName() + "'>" + context.getResources().getString(R.string.label_music_credits_link) + "</a>";
		sound.setText(Html.fromHtml(text));
	}
}